import styled from 'styled-components'

const HomeTopWrapper = styled.div `
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: .44rem;
    width: 100%;
    padding: .1rem .2rem;
    .left{
        font-size: .18rem;
    }
    .right{
        i{
            margin-left: .1rem;
        }
    }
`


const HomeSwiperWrapper = styled.div `
    margin-top: .2rem;
    height: 2rem;
    width: 100%;
    display: block;
    background-color: #fff;
    padding: 0 .2rem;
    .swiper-container {
        height: 100%;
        .swiper-pagination{
        }
        .swiper-wrapper {
        height: 100%;
        .swiper-slide {
            height: 100%;
            img {
            width: 100%;
            height: 100%;
            border-radius: .2rem;
            }
        }
        }
    }
`

const HomeGridWraper = styled.div `
    margin-top: .3rem;
    height: 2.2rem;
    .card {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-bottom: .2rem;
    }
    .card :nth-child(2){
        margin: 0 0.2rem 0 0.2rem;
    }
    .health {
        display: flex;
        flex-direction: row;
        justify-content: center;
        div:nth-child(2){
            margin-left: 0.2rem;
        }
    }
`

const HomeCardWrapper = styled.div `
    background-color: ${ props => props.color };
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-radius: 0.2rem;
    i{
        margin-bottom: .05rem;
    }
    span {
        font-size: .14rem;
        color: #fff;
    }
`

const HomeHealthInfoWrapper = styled.div `
    background-color: rgb(234,243,254);
    width: 1.6rem;
    height: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: .2rem;
    .title {
        margin-top: .1rem;
        margin-left: .1rem;
        font-size: .18rem;
    }
    .text {
        /* margin-top: .1rem; */
        margin-left: .1rem;
        font-size: .12rem;
        color: #999999;
    }
`

const MyTeamWrapper = styled.div`
    width: 100%;
    padding: .1rem .2rem;
    .title{
        background-color: #fff;
        height: .65rem;
        font-size: .18rem;
        margin-bottom: .1rem;
        display: flex;
        align-items: center;
    }
    .center{
        height: 3.2rem;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        img{
            width:1.1rem;
            height:1.1rem;
            border-radius:.2rem;
            margin: .2rem 0;
        }
        .doctorTeam{
            display: flex;
            flex-direction: column;
            align-items: center;
            .teamname{
                font-size: .18rem;
            }
            .teaminfo{
                font-size: .12rem;
                color: #ccc;
                margin: .1rem 0;
            }
        }
    }
`

export {
    HomeTopWrapper,
    HomeSwiperWrapper,
    HomeGridWraper,
    HomeCardWrapper,
    HomeHealthInfoWrapper,
    MyTeamWrapper
}